// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

export async function upload(body: { [key: string]: any }, options?: { [key: string]: any }) {
  return request<API.ResponseResult>('http://dev.center.xiongmaodangao.com/api/xmbz-goods/file/upload', {
    method: 'POST',
    data: body,
    ...(options || {}),
  });
}
